package com.yoso.log.application.service.impl;

import com.alibaba.fastjson.JSON;
import com.yoso.base.service.BaseService;
import com.yoso.log.application.service.IOrderLogService;
import com.yoso.log.domain.order.OrderLogEntity;
import com.yoso.log.domain.order.OrderLogEntityExample;
import com.yoso.log.interfaces.vo.OrderLogVo;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author shizejin
 * @date 2022/1/30
 * @description:
 */
@Service
public class OrderLogServiceImpl extends BaseService<OrderLogEntity, com.yoso.log.interfaces.vo.OrderLogVo, OrderLogEntityExample> implements IOrderLogService {

    @Override
    public OrderLogEntity V2E(OrderLogVo data) {
        return JSON.parseObject(JSON.toJSONString(data),OrderLogEntity.class);
    }

    @Override
    public OrderLogVo E2V(OrderLogEntity data) {
        return JSON.parseObject(JSON.toJSONString(data),OrderLogVo.class);
    }

    @Override
    public OrderLogEntityExample getEntityExample(Map<String, String> paramMap) {
        return null;
    }

}
